<template>
	<view>
		<view class="detail-v2">02 detail</view>
		<button type="default" @click="goBack">返回</button>
	</view>
</template>

<script setup>
	import { ref, getCurrentInstance } from 'vue'
	
	const instance = ref(getCurrentInstance().proxy) // this
	
	function goBack() {
		uni.navigateBack({
			delta: 1
		})
		
		const eventChannel = instance.value.getOpenerEventChannel()
		eventChannel.emit('acceptDataV2', {
			data: 'acceptDataV2-value'
		})
	}
</script>

<style>
	       
</style>
